#算数运算符
a = 8
b = 6
#数学运算
jj = a+b  #14
print(jj)
jg = a-b  #2
print(jg)
cf = a*b  #48
print(cf)
cu = a/b  #1.333...
print(cu)
x = a//b  #取整 1
print(x)
y = a%b  #取余  2
print(y)
z = 3**3  #幂  27
print(z)

#字符串运算
zf = "abc"  #定义字符串 要加""
zi = "efg"
xj = zf+zi  #abcefg
print(xj)

name ="dudu"
print("三国的时候，"+name+"是晋国的老大")

xx = zf*3  #字符串的倍数
print(xx)

#赋值运算符
c,d = 1,2
print(c,d)

e = 88
f = 66
#交换值
j = e  #j接收e的值
e = f  #修改e的值为f
f = j  #修改f的值为e的原始值
print(e,f)
#方法二
e,f = f,e
print(e,f)
#复合赋值运算符
#+=  左侧加右侧的值赋值给左侧,减，乘，除，取整，取余，幂同理
#数字赋值
g = 9
f = 16
g += f  #25
print(g)
#字符串赋值
zt = "axy"
zm = "bcz"
zt += zm  #axybcz
print(zt)

#比较运算
g = 9
f = 16
print(g>f)  #faise
print(g<f)  #true
print(g==f)  #faise
